import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/home/Home.vue'
import Research from '../views/research/Research.vue'
import Team from '../views/team/Team.vue'
import Achievement from '../views/achievement/Achievement.vue'
import Notice from '../views/notice/Notice.vue'
import Login from '../views/Login.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/research',
      name: 'research',
      component: () => import('../views/research/Research.vue')
    },
    {
      path: '/team',
      name: 'team',
      component: () => import('../views/team/Team.vue')
    },
    {
      path: '/achievement',
      name: 'achievement',
      component: () => import('../views/achievement/Achievement.vue')
    },
    {
      path: '/notice',
      name: 'notice',
      component: () => import('../views/notice/Notice.vue')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/Login.vue')
    },
  ]
})

export default router
